package com.ssy.lingxi.platform.manage.api.feign.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.paas.CurrencyPAASControllerFeignFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.currency.CurrencyPAASDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @menu 币制 - （系统初始化）PAAS接口
 * @author fhj
 * @version 2.0.0
 * @date 2020/09/25
 */
@FeignClient(value = "platform-manage-service", fallback = CurrencyPAASControllerFeignFallback.class)
public interface CurrencyPAASControllerFeign {

    @ApiOperation(value = "添加")
    @PostMapping("/manage/paas/currencyPAAS/add")
    Wrapper<?> add(@RequestBody CurrencyPAASDTO dto);

    @ApiOperation(value = "修改")
    @PostMapping("/manage/paas/currencyPAAS/update")
    Wrapper<?> update(@RequestBody CurrencyPAASDTO dto);

    @ApiOperation(value = "删除")
    @PostMapping("/manage/paas/currencyPAAS/delete")
    Wrapper<?> delete(@RequestBody CurrencyPAASDTO dto);

    @ApiOperation(value = "停用/启用")
    @PostMapping("/manage/paas/currencyPAAS/state")
    Wrapper<?> state(@RequestBody CurrencyPAASDTO dto);
}
